package demo.xlj.yuyi.studentapp.entitiy;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Generated;

/**
 * 作者：项路俊 on 2018/2/27 0027
 * 邮箱：ThanksForCode@gmail.com
 * 介绍：用户信息存贮表
 */
@Entity
public class User {

    @Id
    private Long id;
    private String name;
    private String password;
    private int code;
    private String nichen;
    @Transient
    private int tempUsageCount;
    @Generated(hash = 360293010)
    public User(Long id, String name, String password, int code, String nichen) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.code = code;
        this.nichen = nichen;
    }
    @Generated(hash = 586692638)
    public User() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public int getCode() {
        return this.code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getNichen() {
        return this.nichen;
    }
    public void setNichen(String nichen) {
        this.nichen = nichen;
    }
}
